package com.nenglai.admin.modular.report.vo;


import com.kordar.datalist.DataColumn;
import com.kordar.datalist.formatter.CreateTimeFormatter;
import com.kordar.datalist.formatter.IntegerFormatter;
import com.nenglai.admin.modular.report.formatter.DownloadFormatter;
import lombok.Data;

import java.util.Date;

@Data
public class ReportDownloadVO {

    @DataColumn
    private String id;

    /**
     * 名称
     */
    @DataColumn
    private String name;

    /**
     * 下载地址
     */
    @DataColumn(field = "id", formatter = DownloadFormatter.class)
    private String download;

    /**
     * 下载次数
     */
    @DataColumn(alias = "download_count", formatter = IntegerFormatter.class)
    private Integer downloadCount;

    /**
     * 用户Id
     */
    @DataColumn
    private Long uid;

    /**
     * 分享报告 0 禁止分享 1 分享
     */
    @DataColumn(formatter = IntegerFormatter.class)
    private Integer shared;

    /**
     * 创建时间
     */
    @DataColumn(alias = "create_time", formatter = CreateTimeFormatter.class)
    private Date createTime;

    /**
     * 更新时间
     */
    @DataColumn(alias = "update_time", formatter = CreateTimeFormatter.class)
    private Date updateTime;
}
